#include "car_ownership_struct_csv.hpp"
#include "type_conversion.hpp"


car_ownership_struct_csv::car_ownership_struct_csv(std::vector<std::string> const& v)
{

	   switch(v.size()-1)
 	   {
		case NOTE:
			this->set_notes(v[NOTE]);
		case ID:
			this->set_id(type_conversion<int>::to_number(v[ID]));
			break;
		default: break;
	   }

//		std::cout << "[car_ownership_struct_csv.car_ownership_struct_csv] " << *this << std::endl;
}